package org.panda.ioc.nvr;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(HcNetDeviceProperties.class)
public class HcNetNvrAutoConfiguration {

    @Autowired
    private HcNetDeviceProperties properties;

    public HcNetNvrAutoConfiguration(){
        System.out.println("HcNetNvrAutoConfiguration init");
    }

    @Bean
    public NvrBean nvrBean(){
        return new NvrBean();
    }
}
